package com.clkj.zhonghui.pojo.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * @author jiarun
 * @date Tue Jul 23 09:33:55 CST 2024
 */
@ApiModel( value ="t_zh_collectProduct" )
@Table( name ="t_zh_collectProduct" )
public class CollectProduct  implements Serializable {


	/**
	 * 主键ID
	 */
    @Id
   	@Column(name = "collect_id" , updatable = false)
	@ApiModelProperty( value="主键ID")
	private Integer collectId;

	/**
	 * 商品ID
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品ID")
	private Integer productId;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户ID")
	private Integer userId;


    @Transient
    private List<Product> products;

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

  public Integer getCollectId() {
    return collectId;
  }

  public void setCollectId(Integer collectId) {
    this.collectId = collectId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

}
